<template>
	<view class="publish-success shadow u-f-ac u-f-jsb">
		<image :src="img"></image>
		<view class="share u-f-ac u-f-jsb">
			<view>邀请好友一起玩</view>
			<text class="descro">分享到</text>
			<view class="share-pic u-f-ac u-f-jsb">
				<image mode="widthFix" src="https://assets-cdn.lanqb.com/hyxq/xcxu/wchat.png" class="weixin" @tap="pengyouquan"></image>
				<image mode="widthFix" src="https://assets-cdn.lanqb.com/hyxq/xcxu/wchat-circle.png" class="weixin"></image>
				
			</view>
		</view>
		
		<view class="btn go-Index" @tap="goIndex">
			去首页
		</view>
	</view>
</template>

<script>
	import poster from '@/components/common/zywPoster.vue';
	export default {
		data() {
			return {
				img: ''
			};
		},
		onLoad(opt) {
			console.log(opt)
			this.img = opt.img
		},
		methods: {
			goIndex(){
				uni.switchTab({
					url:'index/index'
				})
			}
		}
	}
</script>

<style lang="scss">
.publish-success {
	position: relative;
	padding-top: 60upx;
	padding-bottom: 162upx;
	flex-direction: column;
	color: $b1;
	font-size: 32upx;
	text-align: center;
	height: 82%;
	
	>image {
		width: 410upx;
		height: 410upx;
	}
	>.share {
		flex-direction: column;
		>text{
			color: #8C8C8C;
			font-size: 28upx;
			margin-top: 30upx;
		}
		>.share-pic {
			width: 283upx;
			margin-top: 52upx;
			>image {
				width: 64upx;
				height: 64upx;
				&.weixin {
					width: 70upx;
				}
			}
			
		}
	}
	>.go-Index {
		width:410upx;
		line-height:110upx;
		background:$a1;
		border-radius:100upx;
	}
}
</style>
